import Layout from '@/layout'

const Router = {
  path: '/merchants',
  component: Layout,
  redirect: '/merchants-list',
  name: 'Merchants',

  meta: {
    title: '商户列表',
    icon: 'icon_shanghu0'
  },
  children: [
    {
      path: 'merchants-list',
      component: () => import('@/views/merchants/merchantsList'),
      name: 'MerchantsList',
      meta: { title: '商户列表', noCache: true }
    },
    {
      path: 'evaluation-list',
      component: () => import('@/views/merchants/evaluationList'),
      name: 'EvaluationList',
      meta: { title: '评价列表', noCache: true }
    },
    {
      path: 'data-synchronization',
      component: () => import('@/views/merchants/dataSynchronization'),
      name: 'dataSynchronization',
      meta: { title: '监管平台数据同步', noCache: true }
    },
    {
      path: 'synchronization-detail',
      component: () => import('@/views/merchants/synchronizationDetail'),
      name: 'synchronizationDetail',
      hidden: true,
      meta: { title: '监管平台数据详情', noCache: true }
    },
    {
      path: 'merchants-detail',
      hidden: true,
      component: () => import('@/views/merchants/merchantsDetail'),
      name: 'merchantsDetail',
      meta: { title: '商户详情', noCache: true }
    },
    {
      path: 'integral-detail',
      component: () => import('@/views/merchants/integralDetail/index'),
      name: 'merchantsDetail',
      hidden: true,
      meta: { title: '积分详情', noCache: true }
    },
    {
      path: 'coupons-detail',
      component: () => import('@/views/merchants/couponsDetail/index'),
      name: 'merchantsDetail',
      hidden: true,
      meta: { title: '券详情', noCache: true }
    },
    {
      path: 'card-detail',
      component: () => import('@/views/merchants/cardDetail/index'),
      name: 'cardDetail',
      hidden: true,
      meta: { title: '卡详情', noCache: true }
    },
    {
      path: 'merchants-statistics',
      component: () => import('@/views/merchants/merchantsStatistics'),
      name: 'MerchantsStatistics',
      meta: { title: '商户数据统计', noCache: true }
    },
    {
      path: 'scale-control',
      component: () => import('@/views/merchants/scaleControl'),
      name: 'scaleControl',
      meta: { title: '发卡规模控制', noCache: true }
    },
    {
      path: 'invite-code',
      component: () => import('@/views/merchants/inviteCode'),
      name: 'InviteCode',
      meta: { title: '邀请码生成器', noCache: true }
    },
    {
      path: 'member-card',
      component: () => import('@/views/merchants/components/merchantsDetail/memberDetail/memberCard'),
      name: 'memberCard',
      hidden: true,
      meta: { title: '会员持卡情况', noCache: true }
    },
    {
      path: 'incoming-parts',
      component: () => import('@/views/merchants/incomingParts'),
      name: 'incomingParts',
      meta: { title: '第三方商户进件', noCache: true }
    },
    {
      path: 'incoming-detail',
      component: () => import('@/views/merchants/incomingParts/incomingDetail'),
      name: 'incomingDetail',
      hidden: true,
      meta: { title: '进件资料详情', noCache: true }
    },
    {
      path: 'card-return',
      component: () => import('@/views/merchants/cardReturn'),
      name: 'cardReturn',
      meta: { title: '退卡管理', noCache: true }
    },
    {
      path: 'other-groups',
      component: () => import('@/views/otherGroups/otherGroups'),
      name: 'otherGroups',
      meta: { title: '其他团体列表', noCache: true }
    },
    {
      path: 'bridge-card',
      component: () => import('@/views/bridgeCard/bridgeCard'),
      name: 'bridgeCard',
      meta: { title: '团体福利卡', noCache: true }
    },
    {
      path: 'add-bridge-card',
      component: () => import('@/views/bridgeCard/addBridgeCard'),
      name: 'addBridgeCard',
      meta: { title: '新增团体福利卡', noCache: true }
    },
    {
      path: 'bridge-card-detail',
      component: () => import('@/views/bridgeCard/bridgeCardDetail'),
      name: 'bridgeCard',
      meta: { title: '卡详情', noCache: true }
    },
    {
      path: 'look-members',
      component: () => import('@/views/bridgeCard/lookMembers'),
      name: 'addBridgeCard',
      meta: { title: '查看会员', noCache: true }
    },
    {
      path: 'look-merchants',
      component: () => import('@/views/bridgeCard/lookMerchants'),
      name: 'bridgeCard',
      meta: { title: '查看商家', noCache: true }
    },
    {
      path: 'consumption',
      component: () => import('@/views/bridgeCard/consumption'),
      name: 'addBridgeCard',
      meta: { title: '消费记录', noCache: true }
    },
    {
      path: 'establish-shop',
      component: () => import('@/views/merchants/establishShop/index'),
      name: 'establishShop',
      hidden: true,
      meta: { title: '创建店铺', noCache: true }
    },
  ]
}

export default Router
